<?php
declare (strict_types = 1);

namespace app\controller;

use app\common\model\Zanshangjilu;
use think\facade\View;

class Livehelper extends Common
{
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public function index()
    {
        $list = \app\common\model\Content::where("cate_id",66)
            ->order("id DESC")
            ->paginate();
        View::assign("list",$list);
        View::assign("title","文章列表");

        //赞赏记录
        $logs = Zanshangjilu::where("status",1)
            ->order("id DESC")
            ->paginate();

        View::assign("logs",$logs);
        return  view();
    }

    public function versions()
    {
        $list = \app\common\model\Images::where("cid",1)
            ->order("id DESC")
            ->paginate();
        View::assign("list",$list);
        return  view();

    }


}
